import axios from 'axios'
import React, { useEffect, useState } from 'react'
import { useSearchParams } from 'react-router-dom'
export default function Xiang() {
    const [searchParams] = useSearchParams()
    const [list,setlist] = useState('')
    const _id = searchParams.get('_id')
    console.log(_id);
    
    useEffect(()=> {
        axios.get(`http://127.0.0.1:3000/xiang?_id=${_id}`).then(res => {
            if(res.data.code == 200){
              setlist(res.data.data)
            }
        })
    },[])

  return (
    <div>Xiang</div>
  )
}
